Skip to main content
POST
/
merchant
/
email
/
gateway_setup_v2
Email Gateway Setup V2(Sendgrid|smtp)
curl --request POST \
  --url https://api.unibee.dev/merchant/email/gateway_setup_v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gatewayName": "<string>",
  "IsDefault": true,
  "apiCredential": {
    "apiKey": "<string>",
    "apiSecret": "<string>",
    "authType": "<string>",
    "oauthToken": "<string>",
    "password": "<string>",
    "skipTLSVerify": true,
    "smtpHost": "<string>",
    "smtpPort": 123,
    "useTLS": true,
    "username": "<string>"
  }
}
'
{
  "code": 123,
  "data": {},
  "merchantId": 123,
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
gatewayName
string<string>
required

The name of email gateway, available for sendgrid|smtp

IsDefault
boolean<bool>

Whether setup the gateway as default or not, default is false

apiCredential
object

Response

200 - application/json
code
integer<int>
data
object
merchantId
integer<int64>
message
string<string>
redirect
string<string>
requestId
string<string>